<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/index.css">
    <style>
        h1{
            /* 增加权重 !important */
            color:blue !important;
        }

        *{
            color:red;
        }

        .show{
            color:hotpink;
        }

        p{
            color:gold;
        }
        



    </style>
</head>
<body>
    
    <h1 style='color:green !important'>标题</h1>

    <p class="show">选择器的优先级</p>

</body>
</html>